﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace cludg.Services.Security
{
    public class ValidateUserError : ApplicationException
    {
        public Principal Principal { get; set; }

        public ValidateUserError(Principal principal, string message)
            : base(message)
        {
            Principal = principal;
        }

        public ValidateUserError(Principal principal, string message, Exception innerException)
            : base(message, innerException)
        {
            Principal = principal;
        }
    }

    public class UserNotFoundError : ValidateUserError
    {
        public UserNotFoundError(Principal principal, string message)
            : base(principal, message)
        {
        }
    }

    public class UserNeedActivationError : ValidateUserError
    {
        public UserNeedActivationError(Principal principal, string message)
            : base(principal, message)
        {
        }
    }
}

